package com.jiawa.train.business.controller.web;

import com.jiawa.train.business.service.StationService;
import com.jiawa.train.common.resp.Result;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/web/station")
public class StationController {
    @Resource
    private StationService stationService;

    @GetMapping("/query-all")
    public Result queryAll() {
        List stationList = stationService.queryAll();
        return Result.success(stationList);
    }
}
